home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / pvmgs / pvmgs_const.h < prev    next >
Text File  |  1997-07-22  |  4KB  |  72 lines

  1.  
  2. /* $Id: pvmgs_const.h,v 1.3 1997/07/09 13:51:27 pvmsrc Exp $ */
  3.  
  4. /*
  5.  *         PVM version 3.4:  Parallel Virtual Machine System
  6.  *               University of Tennessee, Knoxville TN.
  7.  *           Oak Ridge National Laboratory, Oak Ridge TN.
  8.  *                   Emory University, Atlanta GA.
  9.  *      Authors:  J. J. Dongarra, G. E. Fagg, M. Fischer
  10.  *          G. A. Geist, J. A. Kohl, R. J. Manchek, P. Mucci,
  11.  *         P. M. Papadopoulos, S. L. Scott, and V. S. Sunderam
  12.  *                   (C) 1997 All Rights Reserved
  13.  *
  14.  *                              NOTICE
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software and
  17.  * its documentation for any purpose and without fee is hereby granted
  18.  * provided that the above copyright notice appear in all copies and
  19.  * that both the copyright notice and this permission notice appear in
  20.  * supporting documentation.
  21.  *
  22.  * Neither the Institutions (Emory University, Oak Ridge National
  23.  * Laboratory, and University of Tennessee) nor the Authors make any
  24.  * representations about the suitability of this software for any
  25.  * purpose.  This software is provided ``as is'' without express or
  26.  * implied warranty.
  27.  *
  28.  * PVM version 3 was funded in part by the U.S. Department of Energy,
  29.  * the National Science Foundation and the State of Tennessee.
  30.  */
  31.  
  32. /* File: pvmgs_const.h - constants used for pvmgs programs                 */
  33. #define GSNAME             "pvmgs"
  34.  
  35. /* Message tags that the server responds to                                */
  36. #define DIE             0    /* halt the group server                   */
  37. #define JOIN             1    /* join a group                            */
  38. #define LEAVE             2    /* leave a group                           */
  39. #define BARRIER             3    /* group barrier                           */
  40. #define BCAST             4    /* broadcast to a group                    */
  41. #define GETINST             5    /* get the group inst given the task id    */
  42. #define GETTID             6    /* get the task id given the group inst    */
  43. #define GSIZE             7    /* get the group size                      */
  44. #define RESET             8    /* reset the group server                  */
  45. #define DUMP             9    /* dump the state                          */
  46. #define GSLS             10    /* send back a list of the groups          */
  47. #define DEADTID             11    /* notify tag used when a task dies        */
  48. #define TIDLIST          12    /* get list of tids for group              */
  49. #define STATICGROUP      13     /* form a static group                     */
  50. #define HOSTCHAR         14     /* get nproc, coord for a host in a group  */
  51. #define HOSTCHARV        15     /* get nproc, coord for all hosts in group */ 
  52. #define BARRIERV         16     /* barrier call by host coordinator        */
  53.  
  54. /* Initial Storage dimensions and Delta Storage Dimensions                 */
  55. #define DELTANTIDS       10              /* increment for remalloc         */ 
  56. #define DELTABTIDS       DELTANTIDS      /* increment for remalloc         */
  57.  
  58. /* Hash Table dimension                                                    */
  59. #define MINCHAR          32 
  60. #define MAXCHAR          127
  61. #define HASHSIZE         MAXCHAR - MINCHAR + 1
  62.  
  63.  
  64. /* Other manifest constants                                                */
  65. #define CREATE           1               /* flag to create hash entry      */
  66. #define NOCREATE         0                
  67. #define NOTID            -1              /* indicates no tid               */
  68. #define STATIC           1               /* indicate a group is static     */ 
  69. #define DYNAMIC          2               /* indicate a group is dynamic    */
  70. #define STATICDEAD       3               /* dead static group              */
  71. #define PvmgsNotCached   1               /* tid has not cached the data    */
  72.